{use master_page('admin/v_master')}

{block content}
<style>
.main{padding:0px;margin:0px;}
.main ul{margin:0px;padding:0px}

</style>
 

<script>
	$(document).ready(function(){
		$("#usual1 ul").idTabs(); 
		$(".tab_body").each(function(){
			var tab_body = $(this) ; 
			$(this).find('input[type=button]').click(function(){
				$('form').attr('action',$('form').attr('action') + "&subtab=" + tab_body.attr('id'));
				//alert($('form').attr('action'));return;
				$('form').submit();
			}); 
		});
	});
</script>
<?$subtab = isset($_GET['subtab'])?$_GET['subtab']:'normal';?>
<form action="<?=_U('site_info/edit?tab=system_manager')?>" method="post">
<div class="blank20" style="height:20px"></div>
<div id="usual1" class="usual"> 
	<div id="tagstitle">
		<ul> 
			<li style="width:120px"><a href="#normal" id="one1"  class="hover<?=$subtab=="normal"?" selected":""?>" >基本设置</a></li> 
			<li><a href="#seo" id="one2"  class="hover<?=$subtab=="seo"?" selected":""?>">SEO设置</a></li> 
		</ul> 
	</div>
	<div id="normal" class='tab_body' style="display:block;">
	<div id="tagscontent" class="right_box">
		<table class="formtable" style="border:0px solid #cfcfcf;width:100%">
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:20%"><?=lang('site_infomation_name')?></td>
				<td class='content'>
					<input name='p_name' size="48" value='<?=set_value('p_name', $name)?>' type='text' />  
					<?=form_error('p_name', '<font color="red">', '</font>')?>  
				</td>
			</tr>
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:20%"><?=lang('site_infomation_url')?></td>
				<td class='content'>
					<input name='p_url' size="48" value='<?=set_value('p_url', $url)?>' type='text' />  
					<?=form_error('p_url', '<font color="red">', '</font>')?>  
				</td>
			</tr>
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:20%"><?=lang('site_infomation_address')?></td>
				<td class='content'>
					<input name='p_address' size="48" value='<?=set_value('p_address', $address)?>' type='text' />  
					<?=form_error('p_address', '<font color="red">', '</font>')?>  
				</td>
			</tr>
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:20%"><?=lang('site_infomation_contacter')?></td>
				<td class='content'>
					<input name='p_contacter' size="48" value='<?=set_value('p_contacter', $contacter)?>' type='text' />  
					<?=form_error('p_contacter', '<font color="red">', '</font>')?>  
				</td>
			</tr>
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:20%"><?=lang('site_infomation_email')?></td>
				<td class='content'>
					<input name='p_email' size="48" value='<?=set_value('p_email', $email)?>' type='text' />   
					<?=form_error('p_email', '<font color="red">', '</font>')?>  
				</td>
			</tr>
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:20%"><?=lang('site_infomation_phone')?></td>
				<td class='content'>
					<input name='p_phone' size="48" value='<?=set_value('p_phone', $phone)?>' type='text' />  
					<?=form_error('p_phone', '<font color="red">', '</font>')?>  
				</td>
			</tr>
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:20%"><?=lang('site_infomation_mobile_phone')?></td>
				<td class='content'>
					<input name='p_mobile_phone' size="48" value='<?=set_value('p_mobile_phone', $mobile_phone)?>' type='text' />  
					<?=form_error('p_mobile_phone', '<font color="red">', '</font>')?>  
				</td>
			</tr> 
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:20%"><?=lang('site_infomation_copy_right')?></td>
				<td class='content'>
					<input name='p_copy_right'   size="60"  value='<?=set_value('p_copy_right', $copy_right)?>' type='text' />  
					<?=form_error('p_copy_right', '<font color="red">', '</font>')?>  
				</td>
			</tr>
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:20%"><?=lang('site_infomation_icp')?></td>
				<td class='content'>
					<input name='p_icp' value='<?=set_value('p_icp', $icp)?>' type='text' />  
					<?=form_error('p_icp', '<font color="red">', '</font>')?>  
				</td>
			</tr>
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:20%"><?=lang('site_infomation_is_close')?></td>
				<td class='content'>
					<select id='is_close' class='bind'>
						<option value="">请选择</option>
						<?  
						$yesno = lang('global_yesno');
						foreach($yesno as $key=>$value){
						?>
						<option value="<?=$key?>"><?=$value?></option>
						<?}?>
					</select>
					<input name='p_is_close' value='<?=set_value('p_is_close', $is_close)?>' type='hidden' />  
					<?=form_error('p_is_close', '<font color="red">', '</font>')?>  
				</td>
			</tr>
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:20%"><?=lang('site_infomation_close_reason')?></td>
				<td class='content'>
					<textarea name='p_close_reason'
					style="height:120px;"
					><?=set_value('p_close_reason', $close_reason)?></textarea>  
					<?=form_error('p_close_reason', '<font color="red">', '</font>')?>  
				</td>
			</tr>
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:20%"><?=lang('site_infomation_third_js')?></td>
				<td class='content'>
					<textarea name='p_third_js'
					style="height:120px;" 
					><?=set_value('p_third_js', $third_js)?></textarea>  
					<?=form_error('p_third_js', '<font color="red">', '</font>')?>   
				</td>
			</tr>
		</table>
		</div>
		<div class="blank10" style="height:10px"></div>
		<input name="button" type="button" value="提交" class="btn_a">
		<font color='red'><?if(isset($error)){echo $error;}?></font> 
	</div> 
	<div id="seo" class='tab_body' style="display:none; ">
	<div id="tagscontent" class="right_box">
		<table class="formtable" style="border:0px solid #cfcfcf;width:100%">
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:15%"><?=lang('seo_key_words')?></td>
				<td class='content'>
					<textarea name='p_seo_key_words'
					style="height:120px;"
					><?=set_value('p_seo_key_words', $seo->key_words)?></textarea>  
					<?=form_error('p_seo_key_words', '<font color="red">', '</font>')?>  
				</td>
			</tr>
			<tr class='form_line'>
				<td class='title' style="text-align:right;width:15%"><?=lang('seo_description')?></td>
				<td class='content'>
					<textarea name='p_seo_description'
					style="height:120px;" 
					><?=set_value('p_seo_description', $seo->description)?></textarea>  
					<?=form_error('p_seo_description', '<font color="red">', '</font>')?>   
				</td>
			</tr>
		</table> 
		</div>
		<div class="blank10" style="height:10px"></div>
		<input name="button" type="button" value="提交" class="btn_a">
		<font color='red'><?if(isset($error)){echo $error;}?></font> 
	</div> 
</div> 
</form>
{end} 